#pragma once 

#include"UdpSocket.h"
#include"EventLoop.h"
#include"InetAddress.h"
#include"SocketOpt.h"


namespace tmms
{
    namespace network
    {
        class UdpServer:public UdpSocket
        {
        private:
            void Open();
            InetAddress server_;
        public:
            UdpServer(EventLoop *loop,const InetAddress &server);
            void Start ();
            void Stop();
            virtual ~UdpServer();
        };
        

    }
}